<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./Template.xhtml">

            <ui:define name="top">
                MEMBRESIA
            </ui:define>

            <ui:define name="content">
                <f:view>
                    <p:growl autoUpdate="true" life="1500"/>
                    <h:form>
                        <p:panelGrid columns="2">
                            <h:outputLabel value="Descripcion:" for="descripcion" />
                            <p:inputText id="descripcion" value="#{membresiaMBean.membresiaE.descripcion}" title="Descripcion" required="true" requiredMessage="The Descripcion field is required."/>
                            <h:outputLabel value="Costo:" for="costo" />
                            <p:inputMask id="costo" value="#{membresiaMBean.membresiaE.costo}" title="Costo" required="true" requiredMessage="The Costo field is required." mask="999.99"/>   
                            <h:outputLabel value="TipoDuracion:" for="tipoDuracion" />
                            <p:selectOneMenu value="#{membresiaMBean.membresiaE.tipoDuracion}" effect="fade">  
                                <f:selectItem itemLabel="Seleccionar" itemValue="" />  
                                <f:selectItems value="#{membresiaMBean.tip}" var="item" itemLabel="#{item.toString()}" itemValue="#{item.toString()}"/>  
                            </p:selectOneMenu>  
                            <h:outputLabel value="Duracion:" for="duracion" />
                            <p:inputMask id="duracion" value="#{membresiaMBean.membresiaE.duracion}" title="Duracion" required="true" requiredMessage="The Duracion field is required." mask="9"/>
                        </p:panelGrid>
                        <p:commandButton value="save" action="MembresiaConfirmar" ajax="false"/>
                        <p:commandButton value="cancel" action="membresiaFT" ajax="false" immediate="true"/>
                    </h:form>
                </f:view>

            </ui:define>

        </ui:composition>

    </body>
</html>
